{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f7f7f7;
    padding-bottom: 70px;
}

@media (max-width: 1024px) {
    body {
        position: absolute;
        padding: 20px;
    }
}

.introduction {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-list {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Change to 4 columns */
    grid-gap: 20px;
}

.recipe-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-card img {
    width: 100%;
    height: auto;
}

.recipe-card h3 {
    padding: 10px;
    font-size: 1.2em;
}

.recipe-card p {
    padding: 0 10px 10px;
}

.lazy {
  background-color: #f1f1f1;
}

.pagination {
  display: flex;
  list-style-type: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 20px 0;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.page-link:hover,
.page-link:focus {
  background-color: #f8f9fa;
  border-color: #999;
  outline: none;
}

.page-item.active .page-link {
  background-color: #ccd451;
  border-color: #ccd451;
  color: #fff;
  cursor: default;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #ddd;
  cursor: not-allowed;
}

.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
  font-weight: bold;
}
